package com.gtw.modules.api.service;


import com.baomidou.mybatisplus.plugins.Page;
import com.gtw.modules.entity.TbCommodity;
import com.gtw.modules.entity.TbCommodityProperty;

import java.util.List;
import java.util.Map;

/**
 * 商品与属性中间表
 *
 * @author wuye
 * @email www.baidu.com
 * @date 2018-02-01 10:46:46
 */
public interface TbCommodityPropertyService {

    Page<TbCommodityProperty> queryPageList(Page<TbCommodityProperty> page, Map<String, Object> map);

    TbCommodityProperty queryObject(Integer id);

    void save(TbCommodityProperty commodityProperty);

    void update(TbCommodityProperty commodityProperty);

    void delete(Integer id);

    void deleteBatch(Integer[] ids);

    List<TbCommodityProperty> findInfo(Map<String, Object> map);

    TbCommodityProperty queryCidAndPid(int commodityid,int propertyid);
}
